Add Garmin icon mappings.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 28 Apr 2003 14:58:27 +0000 (14:58 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 28 Apr 2003 14:58:27 +0000 (14:58 +0000)
gpsbabel/garmin.c

index 0cc1ebf3d19ace5388f85a8cc7120805a4d75460..0d3d3fd29001e2be1b6b6ccc4cb571417e6bc079 100644 (file)
@@ -76,6 +76,8 @@ waypt_read(void)
                wpt_tmp->description = xstrdup(way[i]->cmnt);
                wpt_tmp->position.longitude.degrees = way[i]->lon;
                wpt_tmp->position.latitude.degrees = way[i]->lat;
+               wpt_tmp->icon_descr =
+                       mps_find_desc_from_icon_number(way[i]->smbl);
                /*
                 * If a unit doesn't store altitude info (i.e. a D103)
                 * gpsmem will default the alt to INT_MAX.   Other units 
@@ -262,6 +264,7 @@ data_write(void)
                }
                way[i]->lon = wpt->position.longitude.degrees;
                way[i]->lat = wpt->position.latitude.degrees;
+               way[i]->smbl = mps_find_icon_number_from_desc(wpt->icon_descr);
                if (wpt->position.altitude.altitude_meters != unknown_alt) {
                        way[i]->alt = wpt->position.altitude.altitude_meters;
                }